package com.cai.kcsj.service.impl;

import com.cai.kcsj.entity.Comtent;
import com.cai.kcsj.mapper.ComtentMapper;
import com.cai.kcsj.service.ComtentServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/4 18 : 27
 * @package：com.cai.kcsj.service.impl
 */
@Service
public class ComtentServerImpl implements ComtentServer {

    @Autowired
    private ComtentMapper comtentMapper;
    @Override
    public List<Comtent> selectComtent() {
        return comtentMapper.selectComtent();
    }



    @Override
    public List<Comtent> selectComById(Integer gid) {

        return comtentMapper.selectComById(gid);
    }

    @Override
    public void deleteComtent(Integer id) {
        comtentMapper.deleteComtent(id);
    }

    @Override
    public void addComtent(Comtent comtent) {
        comtentMapper.addComtent(comtent);
    }
}
